package qidian.it.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import qidian.it.entity.Result;
import qidian.it.entity.User;


@RestController
public class ProductController {
    @RequestMapping("/productInfo")
    public Result productInfo(){
        return Result.success("ok");
    }

    @RequestMapping("/productName")
    public Result getProductName(String productName){
        return Result.success(productName);
    }

    @RequestMapping("/getUserInfo")
    public Result getUserInfo(@RequestBody User user){
        return Result.success(user);
    }

}
